import { request, METHOD } from '@/utils/request';

// 根据筛选条件获取报文上传请求类型列表
export const getListByParamApi = (params) => {
  return request('/rep/repUplinkRequest/getListByParam', METHOD.GET, params);
};

// 新增报文上传请求类型
export const addRepUplinkDestinationApi = (params) => {
  return request('/rep/repUplinkRequest/addRepUplinkDestination', METHOD.POST, params);
};

// 删除报文上传请求类型
export const deleteRepUplinkRequestApi = ({ id }) => {
  return request(`/rep/repUplinkRequest/delete/${id}`, METHOD.DELETE);
};

// 修改报文上传请求类型
export const updateRepUplinkRequestApi = (params) => {
  return request('/rep/repUplinkRequest/update', METHOD.POST, params);
};

